Skip to main content

Collections and cases

info

Before you start.

  • Permissions: Build Collection to create one, Publish Collection to publish (Permissions).
  • Create at least one REST / SOAP environment first. If the API needs credentials, create the secret too.
  • A new server has no collections. Follow the Quick start to create the first one.
  • To include another collection, that collection must be published. To import one, you need the exported file and a destination environment.

The API Test panel​

List screen: 4 tabs (Collections, Environments, Secrets, External sources), the + New API Test Collection button, upload (import) icon, search, filter, refresh and collection cards.

List screen: 4 tabs (Collections, Environments, Secrets, External sources), the + New API Test Collection button, upload (import) icon, search, filter, refresh and collection cards.

FILTERS popover: Status and Environment dropdowns, plus Clear all.

FILTERS popover: Status and Environment dropdowns, plus Clear all.

ElementSource / optionsFunction & result
Title "API TEST COLLECTIONS"—Panel listing the collections.
Collections tab/sectionAutomaticCollection cards. Scrolling loads the next page.
Environments section + numberAutomaticProject environments; the number is the count.
Secrets section + numberYour secure vaultNames of your secrets. The screen is titled "MY SECRETS".
External Sources sectionAutomaticSSH/SFTP/Database connections.
Search collections… fieldYou typeFilters collections by name.
Funnel icon (filter)"FILTERS" popover with two dropdowns: Status and Environment; list of environmentsFilters the collection cards. Clear all resets the filters (greyed out when no filter is active).
Collection cardAutomaticStatus badge (● Published / ● Unpublished changes), version badge (for example v2), case count, collection key (for example my-collection), name, description, Pass rate (green/red), "Last run …" (+ "FAILED"), "Updated … by …". Clicking opens Collection Details.
Refresh collections icon—Reloads the list from the server.
+ New API Test Collection—Opens the New Collection form (Creating a collection). Needs the build-collection permission.
Upload icon (box with arrow, next to New)—Opens the Import collection dialog (agis-api-tests file). Fields: Destination environment, Collection name (blank = file name) and include targets if any.
+ New Environment—Opens the environment form (Environments).
+ Add secret—New secret dialog (Secrets).
+ New external source—External source form (External sources).

Creating a collection​

New API Test Collection form: Draft v1 badge, Collection name, Generated collection key, Description, two Default environments, After Create · Next steps panel, Create collection (disabled until a name is entered) and Cancel.

New API Test Collection form: Draft v1 badge, Collection name, Generated collection key, Description, two Default environments, After Create · Next steps panel, Create collection (disabled until a name is entered) and Cancel.

ElementSource / optionsFunction & result
"Draft v1" badgeAutomaticA new collection starts as draft version 1.
Collection name (required)You enterName; also the basis of the key.
Generated collection keyAutomatic (read-only)Key preview from the name. The server confirms the final key on creation and the key does not change if the name is later changed.
DescriptionYou enterFree note.
Default environment · REST / SOAP (required)From the non-MQ environment listDefault environment for HTTP/SOAP cases.
Default environment · MQ (optional)An MQ environment, or "None: no MQ cases yet"Default environment for MQ cases. One default per protocol; a case that does not pin an environment follows the default of its protocol.
Create collection—Creates the collection and shows After Create · Next steps (guidance for next steps).
Cancel—Go back without saving.
After Create · Next stepsCollapsible panelGuidance after creation (add cases, declare variables, publish).

The Cases tab​

Header: collection name + Run Collection + Publish. Tabs: Cases, Variables, Datasets, Setup / Teardown, History, Generated, Settings, Run. Case row: drag handle, number, ID, method badge, name, Duplicate, Delete. Bottom: Add Case, Import Case, Include Collection.

Header: collection name + Run Collection + Publish. Tabs: Cases, Variables, Datasets, Setup / Teardown, History, Generated, Settings, Run. Case row: drag handle, number, ID, method badge, name, Duplicate, Delete. Bottom: Add Case, Import Case, Include Collection.

INCLUDE (INC) rows in another collection: INCLUDE badge, collection name, Delete, Edit and "show cases".

INCLUDE (INC) rows in another collection: INCLUDE badge, collection name, Delete, Edit and "show cases".

Add Case dialog: Environment, Case name, Method, URL path, Cancel / Create Case.

Add Case dialog: Environment, Case name, Method, URL path, Cancel / Create Case.

Include Collection dialog: Published collection, Version (blank = latest published), validation limits, Cancel / Include Collection.

Include Collection dialog: Published collection, Version (blank = latest published), validation limits, Cancel / Include Collection.

Purpose: build and order the test steps, then publish.

ElementSource / optionsFunction & result
Collection tabsFixed choiceCases, Variables, Datasets, Setup / Teardown, History, Generated, Settings, Run. History/Run/Generated only appear with permission.
Case rowAutomaticShows ID, name, method badge (GET/POST…; MQ: "MQ IN/OUT" with direction tooltip), status, "Generated · report" tag, warning icon "Fix or review this case before publishing".
Drag a row—Changes the execution order. Order matters for variables passed between cases.
Add Case (dialog)—Creates a new case. Fields below.
— Case nameYou enterName.
— EnvironmentChoice: "REST / SOAP · name (collection default | pins this case)" and "MQ · name …"Chooses protocol and environment at once. The case protocol is fixed from creation. Choosing a non-default environment pins it to the case.
— Method (HTTP)Choice: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONSRequest method.
— URL path (HTTP)You enter (default /)Path after the Base URL.
— Direction & Queue (only when an MQ environment is selected)Inbound/Outbound; queue auto-filled from the environmentMessage direction and queue. Not shown for HTTP cases.
Create Case—Creates the case and opens its editor.
Import Case (dialog).json/.agis.json file, max 10 MB, one fileImports a case from a previous export. Errors: too large / not JSON / more than one file. The Remove selected case file icon cancels the selection.
Include Collection (dialog)"Published collection" field (required) and "Version (blank = latest published)". Help text: target must be Published; cycles, more than 3 levels, more than 10 includes or more than 500 cases are rejected (422). Cancel / Include Collection buttons.Adds an INCLUDE row that runs another collection as one step. Values pass between the two collections only through IMPORT_VARIABLES and EXPORT_VARIABLES steps (see Setup and teardown).
INCLUDE row → Edit / Delete—Changes the pinned version or deletes the include; the "nested" row shows the resolved cases.
Duplicate / Delete (per row)Delete confirmationDuplicates / deletes a case. Deleting warns about dependent cases.
Click "Generated · report"—Opens the generation report in the Generated tab.
Run Collection (in the header, always visible)—Shortcut to the collection Run tab (Running a collection).
Publish (in the header)Publish permissionValidates the draft then creates a new version. Failure → list of problems per case/field. Success → the collection becomes Published with a new version number.
RevisionAutomaticUsed to detect changes made by other people/agents; the list reloads after the chat agent works.

The collection Settings tab​

Settings: Collection name, Description, two Default environments, DEFAULT_ENV_IN_USE note, LIFECYCLE table, Save changes.

Settings: Collection name, Description, two Default environments, DEFAULT_ENV_IN_USE note, LIFECYCLE table, Save changes.

ElementSource / optionsFunction & result
Collection name, DescriptionYou enter"Live" metadata: saving raises the revision but does not create a new published version. The name must be unique.
Default environment · REST / SOAPNon-MQ environmentsDefault for every HTTP/SOAP case. Each default must be an environment of its own protocol.
Default environment · MQ (optional)MQ environment or NoneDefault for MQ cases. Removing it is blocked while an enabled MQ case follows it without pinning (DEFAULT_ENV_IN_USE).
LIFECYCLE (Field / Value table)AutomaticShows key, status, versions, times; the permanent Collection key.
Export versionCurrent draft or Published v nChooses the version exported to a file (agis-api-tests format) to move to another project/environment.
Save changes button (and Export)—Saves metadata / downloads the export.
Delete collectionConfirmationBlocked while the collection is pinned/included by another collection ("Remove pinning references before deleting").

Archived collections and pinned-by references​

ElementMeaning
Pinned by (Settings tab)Lists the records that pin this collection. While references exist, Delete is blocked ("Remove pinning references before deleting"). Empty: "No collection currently references this collection."
Published versions (list)One row per version: v<n>, its state (published or archived), the number of cases, who published it and when. Empty: "No published versions yet."
Archive (button on a published version)Archives that version (needs the Update Collection permission). An archived version is no longer a published version. When no published version is left the collection shows the archived status ("This collection is archived. Publish a new version to reactivate it.").
Pinned by rowsEach row shows the referencing collection (key · name), how it references this one (the "via" kind, such as include) and whether that is the draft or a published vN of the referencing collection.
Archived status"This collection is archived. Publish a new version to reactivate it."
Default environment pickersEach default must belong to its own protocol; "No REST / SOAP environments are available for this project." if none exist.

Import collection and includes​

Import Collection dialog: Destination environment (required), drag-and-drop area for the collection file, Cancel and Import (disabled until a file and an environment are chosen).

Import Collection dialog: Destination environment (required), drag-and-drop area for the collection file, Cancel and Import (disabled until a file and an environment are chosen).

An INCLUDE row:

An INCLUDE row: "pinned v4 · resolved v4 · 17 cases", Delete, Edit, and show/hide cases (the included cases are listed underneath).

Edit Include: Published collection, Version (blank = latest published), the limits text, Cancel and Save Include.

Edit Include: Published collection, Version (blank = latest published), the limits text, Cancel and Save Include.

ElementDetails
Import Collection (upload icon next to + New API Test Collection)Dialog with Destination environment (required) and the drop area "Drag & Drop collection file here or Browse — Accepts .agis.json · Max. file size 10 MB". If the file contains includes, a target collection and version are asked for ("Select target…", "Latest published"); import and publish the nested collection first if the target is missing. Collection name can be left blank to use the file name. Cancel / Import.
INCLUDE rowShows the included collection name, its key, pinned vN (the version you chose; blank means latest) and resolved vN (the version actually used), and the case count.
Edit on an includeOpens Edit Include to change the target collection or its version, then Save Include.
Delete on an includeRemoves the include row.
show cases / hide casesLists the cases that the include brings in (read-only).
Include Collection buttonOpens the Include Collection dialog. The button can be greyed out. If it is, check that you have the Update Collection permission and that the collection you want to include is published; ask your administrator if it stays disabled.